<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .small{
            width: 20px;
            height: 20px;
            border: 3px solid pink;
            border-radius: 50%;
            position: absolute;
        }
    </style>
</head>
<body>
    <script>
        document.onmousemove=function(e){
            var box=document.createElement("div")
            box.className="small"
            box.style.left=e.clientX+'px'
            box.style.top=e.clientY+'px'
            document.body.appendChild(box)

            var timer=null
            var i=0
            timer=setInterval(function(){
                i+=5
                box.style.width=(20+i)+'px'
                box.style.height=(20+i)+'px'
                box.style.opacity=(50-i)/50
            },10)
            setTimeout(function(){
                clearInterval(timer)
                box.remove()
            },100)
        }
    </script>
</body>
</html>